package cn.tx;

import javax.servlet.*;
import java.io.IOException;

/**
 * @author Administrator
 * @title: MyServlet
 * @projectName tx-servlet1
 * @description: TODO
 * @date 2019/4/1020:14
 */
public class MyServlet implements Servlet {

    @Override
    public void init(ServletConfig servletConfig) throws ServletException {
        System.out.println("Servlet 被初始化了!!!");
    }

    @Override
    public ServletConfig getServletConfig() {
        System.out.println("获取Servlet 初始化参数!!");
        return null;
    }

    @Override
    public void service(ServletRequest servletRequest, ServletResponse servletResponse) throws ServletException, IOException {
        System.out.println("Servlet 处理了请求!!!");
    }

    @Override
    public String getServletInfo() {
        System.out.println("获取Servlet的信息!!!");
        return null;
    }

    @Override
    public void destroy() {
        System.out.println("Servlet 被销毁了!!!");
    }
}

